package com.dcloud.core.source;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

@Data
@ToString
@SuperBuilder
@NoArgsConstructor
public class ClickhouseSource extends RdbmsSource {

    /**
     * 主机地址
     */
    protected String host;

    /**
     * 端口
     */
    protected String port;

    /**
     * 数据库
     */
    protected String dbase;


    /**
     * 数据库
     */
    protected String url;

    public String getUrl() {
        return "jdbc:clickhouse://"+host+":"+port+"/"+dbase;
    }

}
